﻿export default [
  {
    path: '/login',
    component: '../layouts/LoginLayout',
    routes: [
      {
        name: 'login',
        path: '/login',
        component: './Login',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        // authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: './dashboard'
          },
          {
            path: '/dashboard',
            name: 'dashboard',
            icon: 'PieChartOutlined',
            component: './DashBoard'
          },
          {
            path: 'user',
            name: 'user',
            icon: 'UserOutlined',
            component: './User'
          },
          {
            path: '/goods',
            name: 'goods',
            icon: 'ShoppingOutlined',
            component: './Goods'
          },
          {
            path: '/slides',
            name: 'slides',
            icon: 'SnippetsOutlined',
            component: './Slides'
          },
          {
            path: '/orders',
            name: 'orders',
            icon: 'UnorderedListOutlined',
            component: './Orders'
          },
          {
            path: '/category',
            name: 'category',
            icon: 'AppstoreOutlined',
            component: './Category'
          },
          {
            path: '/comments',
            name: 'comments',
            icon: 'CommentOutlined',
            component: './Comments'
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
